<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="HospitalViewDlg" widgetVar="HospitalViewDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.ViewHospitalTitle}">

            <h:form id="HospitalViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{hospitalController.selected != null}">

                        <h:outputText value="#{myBundle.ViewHospitalLabel_hid}"/>
                        <h:outputText value="#{hospitalController.selected.hid}" title="#{myBundle.ViewHospitalTitle_hid}"/>

                        <h:outputText value="#{myBundle.ViewHospitalLabel_name}"/>
                        <h:outputText value="#{hospitalController.selected.name}" title="#{myBundle.ViewHospitalTitle_name}"/>

                        <h:outputText value="#{myBundle.ViewHospitalLabel_description}"/>
                        <h:outputText value="#{hospitalController.selected.description}" title="#{myBundle.ViewHospitalTitle_description}"/>

                        <h:outputText value="#{myBundle.ViewHospitalLabel_building}"/>
                        <h:outputText value="#{hospitalController.selected.building}" title="#{myBundle.ViewHospitalTitle_building}"/>

                        <h:outputText value="#{myBundle.ViewHospitalLabel_street}"/>
                        <h:outputText value="#{hospitalController.selected.street}" title="#{myBundle.ViewHospitalTitle_street}"/>

                        <h:outputText value="#{myBundle.ViewHospitalLabel_town}"/>
                        <h:outputText value="#{hospitalController.selected.town}" title="#{myBundle.ViewHospitalTitle_town}"/>

                        <h:outputText value="#{myBundle.ViewHospitalLabel_city}"/>
                        <h:outputText value="#{hospitalController.selected.city}" title="#{myBundle.ViewHospitalTitle_city}"/>

                        <h:outputText value="#{myBundle.ViewHospitalLabel_patientvisitCollection}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{myBundle.Close}" onclick="HospitalViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
